<!DOCTYPE html>
<!--
To change this license header, choose License Headers in Project Properties.
To change this template file, choose Tools | Templates
and open the template in the editor.
-->
<html>
    <head>
        <title>修改</title>
        <meta charset="UTF-8">
        <meta name="viewport" content="width=device-width, initial-scale=1.0">
        <script src="./jquery-3.1.1.min.js" type="text/javascript"></script>
    </head>
    <body>
        <input type="hidden" name="id" value="{$arr['id']}"/>
        昵称:<input type="text" name="user" value="{$arr['name']}"/><br/>
        密码:<input type="text" name="pwd" value="{$arr['pwd']}"/><br/>
        <input type="button" name="button" value="修改"/>
        <script type="text/javascript">
            {literal}
            $("input[name=button]").click(function(){
                var name=$("input[name=user]").val();
                var pwd=$("input[name=pwd]").val();
                var id=$("input[name=id]").val();
                $.ajax({
                   type:"post",
                   url:"index.php?m=Index&c=Change&a=insertinto",
                   data:{name:name,pwd:pwd,id:id},
                      success:function(a){
                          if(a==1){
                              
                          }else{
                               window.location.href ="index.php?m=Index&c=List&a=register";
                          }
                   }
                   
                });
            });
            {/literal}
        </script>
    </body>
</html>
